package com.wrk._1_语法._03_分支;

import java.util.Scanner;

public class _007_能否同时被3和5整除 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入数:");
        //输入数据
        int number = scanner.nextInt();
        //判断
        if (number%3==0){
            if (number%5==0){
                System.out.println("能被3和5同时整除");
            }
        }else {
            System.out.println("不能被3和5同时整除");
        }scanner.close();
    }
}
